package one_class_design.four_work;

/**
 * @author 北巷_东坡
 * @date 2022/9/18 16:42
 * @computer 10741
 */
public class totalArrea {
    private geometry tuxing[];
    private double totalArea=0;

    public void setTuxing(geometry[] tuxing) {
        this.tuxing = tuxing;
    }

    public double computerTotalArea(){
        for (int i = 0; i < tuxing.length; i++) {
            totalArea=totalArea+tuxing[i].getArea();
        }
        return totalArea;
    }
}
